<?php

namespace app\forms\item;

use app\forms\Model;
use app\models\Item;
use app\validators\PositiveInteger;

class ViewForm extends Model
{
    public $id;

    public function rules()
    {
        return [
            ['id', PositiveInteger::class],
            ['id', 'required'],
            ['id', 'exist', 'targetClass' => Item::class],
        ];
    }

    public static function view($param)
    {

    }
}